﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProDivingAdmin2salmon14
{
    public delegate List<Judge> DelegateGetJudgeList();
    public delegate void DelegateAddJudgeToList(Judge judge);

    public delegate void DelegateDeleteJudgeFromList(int id);
    public delegate void DelegateEditJudge(int judgeIndex, Judge newJudge);
    public delegate void DelegateSetAmountOfJudges(int amountOfJudges);
    public delegate void DelegateSaveJudges(string filePath, List<Judge> judgeList);
    public delegate void DelegateReorderJudgeList();

    public interface IJudgeForm
    {
        event DelegateGetJudgeList EventGetJudgeList;
        event DelegateAddJudgeToList EventAddJudgeToList;
        event DelegateGetAmountOfJudges EventGetAmountOfJudges;
        event DelegateDeleteJudgeFromList EventDeleteJudgeFromList;
        event DelegateEditJudge EventEditJudge;
        event DelegateSetAmountOfJudges EventSetAmountOfJudges;
        event DelegateSaveJudges EventSaveJudges;
        event DelegateReorderJudgeList EventReorderJudgeList;
    }
}
